<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>window对象</title>
    <script>
        function f1(){
            // window.open();
            open();
        }
        function f2(){
            open("37-事件冒泡.html");
        }
        function f3(){
            open("33-日期级联下拉列.html","aaa","width=300px,height=200px")
        }
        function f4() {
            setInterval(function(){
                open("33-日期级联下拉列.html","aaa","width=300px,height=200px");
            },200);
        }
        function f5(){
            let myWindow = open("33-日期级联下拉列.html","aaa","width=300px,height=200px");
            // 关闭指定的窗口
            // 方法调用者是哪一个窗口,则关闭该窗口
            myWindow.close();
        }
        function f6(){
            let myWindow = open("33-日期级联下拉列.html","aaa","width=300px,height=200px");
            setTimeout(function(){
                myWindow.close();
            },3000);
        }

        function f7() {
            let s = setInterval(function(){
                open("33-日期级联下拉列.html","aaa","width=300px,height=200px");
            },200);
            let s2 = setTimeout(function(){
                clearInterval(s);
            },2200);
            // clearTimeout(s2);
        }
        function f8(){
            open("42-地址栏.html","aaa","width=300px,height=200px");
        }
    </script>
</head>
<body>
<button onclick="f1()">打开一个新的标签页</button><br>
<button onclick="f2()">打开一个指定页面</button><br>
<button onclick="f3()">打开一个小窗口</button><br>
<button onclick="f4()">周期性打开小窗口</button><br>
<button onclick="f5()">打开并关闭小窗口</button><br>
<button onclick="f6()">打开三秒后关闭小窗口</button><br>
<button onclick="f7()">打开10次小窗口</button><br>
<button onclick="f8()">打开地址栏页面的窗口</button><br>
</body>
</html>